import {
  qyPageListApiPath,
  createListApiPath,
  updateListApiPath,
  getTycInfoByNameApiPath,
} from './api'

import { METHOD, request } from '@/utils/request'

export function qyPageListApi(params) {
  return request(qyPageListApiPath, METHOD.POST, params)
}

export function createListApi(params) {
  return request(createListApiPath, METHOD.POST, params)
}

export function updateListApi(params) {
  return request(updateListApiPath, METHOD.POST, params)
}

export function getTycInfoByNameApi(params) {
  return request(getTycInfoByNameApiPath, METHOD.GET, params)
}

export default {
  qyPageListApi,
  createListApi,
  updateListApi,
  getTycInfoByNameApi,
}
